﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/ViewMasterPage1.Master" Inherits="System.Web.Mvc.ViewPage<ComputerShopE3.Models.POWER>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Chỉnh sửa nguồn</h2>

    <%= Html.ValidationSummary("Edit was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) {%>

        <fieldset>
            <legend>Thông tin</legend>
            
            <%if (ViewData["error"] == null)
              Html.RenderPartial("EditProductPartialView", Model.SAN_PHAM);
          else
          %>
           <%=ViewData["error"]%>
           
            <%--<p>
                <label for="id">id:</label>
                <%= Html.TextBox("linhkien.id", Model.id) %>
                <%= Html.ValidationMessage("id", "*") %>
            </p>--%>
            <p>
                <label for="CongSuat">Công suất:</label>
                <%= Html.TextBox("linhkien.CongSuat", Model.CongSuat) %>
                <%= Html.ValidationMessage("CongSuat", "*") %>
            </p>
            <p>
                <label for="Quat">Quạt:</label>
                <%= Html.TextBox("linhkien.Quat", Model.Quat) %>
                <%= Html.ValidationMessage("Quat", "*") %>
            </p>
            <p>
                <label for="Connector">Connector:</label>
                <%= Html.TextBox("linhkien.Connector", Model.Connector) %>
                <%= Html.ValidationMessage("Connector", "*") %>
            </p>
            <p>
                <input type="submit" value="Lưu thay đổi" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%=Html.ActionLink("Trở lại danh sách", "Index") %>
    </div>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
    <title>Nguồn</title>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="PersonalMenu" runat="server">
</asp:Content>

